<template>
  <div class="chat">
    <div class="chat-view card col-md-8">
      <h3>聊天室</h3>
      <div class="container-full card-content clearfix">
        <div class="view-info"></div>
        <div class="pull-right" v-show="!loginer">请先登录！</div>
        <div class="view-send" v-show="loginer">
          <!-- <textarea type="text" rows="2" class="send-content col-md-9"></textarea>
          <div class="col-md-3">
            <button class="btn btn-default send-btn">发送</button>
          </div> -->
          <div class="input-group">
            <input type="text" class="form-control">
            <span class="input-group-btn">
              <button class="btn btn-default">发送</button>
            </span>
          </div>
        </div>
      </div>
    </div>
    <div class="chat-user col-md-4">
      <div class="user-count card">
        <h3>在线人数</h3>
        <div class="count-box card-content">
          <div class="count">10</div>
        </div>
      </div>
      <div class="user-online card">
        <h3>在线用户</h3>
        <div class="online-box card-content">
          
        </div>
      </div>
    </div>
  </div>
</template>

<style>
  .chat {

  }
  .chat h3 {
    font-size: 18px;
    padding: 10px 0;

  }
  .chat-view > .container-full{
    padding: 10px;
  }
  .view-info {
    min-height: 480px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 10px;
   /*  border-left: 8px inset #aff;
   border-right : 8px inset #aff; */
  }
  .chat .card h3 {
    background: #eee;
    border: 1px outset #ccc;
    border-bottom: 0;
    text-align: center;
  }
  .card .card-content {
     border: 1px outset #acc;
     border-top: none;
  }
  .count-box {
    width: 100%;
    height: 100px;
    overflow: hidden;
  }
  .count {
    height: 50px;
    text-align: center;
    line-height: 50px;
    margin: 25px auto;
    font-size: 40px;
  }
  .user-online {
    margin-top: 20px;
  }
  .online-box {
    min-height: 385px;
  }
</style>


<script>
  export default {
    data () {
      return {}
    },
    computed: {
      loginer () {
        return this.$store.state.userInfo && this.$store.state.userInfo.user
      }
    },
    mounted () {
    }
  }
</script>